#include<stdlib.h>

#include<iup.h>

int main(int argc, char **argv){
	Ihandle *dlg, *multitext, *vbox;
	IupOpen(&argc, &argv);
	multitext = IupText(NULL);
	vbox = IupVbox(multitext, NULL);
	IupSetAttribute(multitext, "MULTILINE", "YES");
	IupSetAttribute(multitext, "EXPAND", "YES");
	
	dlg = IupDialog(vbox);
	IupSetAttribute(dlg, "TITLE", "3-simple notepad");
	IupSetAttribute(dlg, "SIZE", "QUARTERxQUARTER");
	
	IupShowXY(dlg, IUP_CENTER, IUP_CENTER);	
	IupSetAttribute(dlg, "USERSIZE", NULL);
	IupMainLoop();
	IupClose();
	return EXIT_SUCCESS;
}
